package com.mms.action.meetingroom;

import java.util.List;

import com.mms.dao.MeetingRoomManagementDao;
import com.mms.entity.MeetingRoom;
import com.opensymphony.xwork2.Action;

public class GetMeetingRoomAction implements Action{

	private int startPage;
	private List<MeetingRoom> meetingMessage;
	private int account;
	
	
	public int getStartPage() {
		return startPage;
	}


	public void setStartPage(int startPage) {
		this.startPage = startPage;
	}


	public List<MeetingRoom> getMeetingMessage() {
		return meetingMessage;
	}


	public void setMeetingMessage(List<MeetingRoom> meetingMessage) {
		this.meetingMessage = meetingMessage;
	}


	public int getAccount() {
		return account;
	}


	public void setAccount(int account) {
		this.account = account;
	}


	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		MeetingRoomManagementDao mrmt = new MeetingRoomManagementDao();
		meetingMessage = mrmt.getMeetingRooms(startPage);
		account = mrmt.getcount();
		return "success";
	}

}
